package com.woody.aggregate.shop.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * &copy; All rights Reserved
 *
 * @author wénkǎi.zhāng 2025-04-09
 */
@Data
public class ESPageInfo<T> {

    @ApiModelProperty(value = "当前sort", example = "[1,2,3]")
    private List<T> searchAfter;

    @ApiModelProperty(value = "每页的数量", required = true, example = "10")
    private int pageSize;

    @ApiModelProperty(value = "总页数", required = true, example = "1")
    private int pages;

    @ApiModelProperty(value = "下一页sort", example = "[4,5,6]")
    private List<Object> nextSearchAfter;
    
    @ApiModelProperty(value = "结果列表")
    private List<T> list;
}
